Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scale energy estimate by resource allocation in Teads model #5

Merged
merged 4 commits into from
Nov 16, 2023

Conversation

jmcook1186
Copy link
Contributor

@jmcook1186 jmcook1186 commented Nov 16, 2023

Types of changes

  • Enhancement (project structure, spelling, grammar, formatting)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

A description of the changes proposed in the Pull Request

The energy estimated by the Teads model is now scaled by the vcpu-allocated and vcpu-total values if they are provided. For example, if only 1 out of 64 vCPUs are allocated, the energy used by the processor is scaled by 1/64. If no data is available, we assume the entire processor is being used and do not scale.

Closes Green-Software-Foundation/if#271

Signed-off-by: Joseph Cook <[email protected]>
Signed-off-by: Joseph Cook <[email protected]>
@jmcook1186 jmcook1186 merged commit dd6b47d into main Nov 16, 2023
2 checks passed
@jmcook1186 jmcook1186 deleted the teads branch November 16, 2023 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Extend the Teads model to account for allocated CPUs
2 participants